package com.zut.blocks.dao.course;

import com.zut.blocks.base.dao.GenericRepository;
import com.zut.blocks.base.domain.Course;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * @author tianwei
 */
@Repository
public interface CourseRepository extends GenericRepository<Course, Integer> {

    /**
     * find teacher classes by teacher id, page able
     * @param teacherId
     * @param pageable
     * @return
     */
    Page<Course> findByTeacherId(Integer teacherId, Pageable pageable);

}